package patterns.actions.command.gui;

import java.awt.Color;

import javax.swing.JButton;
import javax.swing.JPanel;

public class YellowCommand extends  JButton implements MyCommand {
	
	private JPanel p;
	YellowCommand(String name , JPanel p){
		super(name);
		this.p=p;	
	}

	@Override
	public void execute() {
		this.p.setBackground(Color.yellow);
	}
 

}
